﻿using KYJDAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KYJBLL
{
    public class ActualDataManage
    {
        private ActualDataService actualDataService = new ActualDataService();

        public int AddActualData(List<string> varNameList, List<string> varValueList)
        {
            return actualDataService.AddActualData(varNameList, varValueList);
        }

        /// <summary>
        /// 根据时间间隔和参数名称查询数据
        /// </summary>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <param name="columus"></param>
        /// <returns></returns>
        public DataTable QueryActualDataByTime(string start, string end, List<string> columus)
        {
            return actualDataService.QueryActualDataByTime(start, end, columus);
        }

        /// <summary>
        /// 查询报表数据，根据时间间隔和条件
        /// </summary>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <param name="condition"></param>
        /// <param name="dataTableName"></param>
        /// <returns></returns>
        public DataTable QueryRePortDataByCondition(string start, string end, List<string> condition, string dataTableName)
        {
            return actualDataService.QueryRePortDataByCondition(start, end, condition, dataTableName);
        }
    }
}
